Skip to content

Conversation

@benhillis
Copy link
Member

This change adds additional debug-only tracing to help diagnose HCS / HNS issues.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances diagnostic capabilities for HCS/HNS operations by adding debug-only tracing and improving error messages. The changes include adding WSL_LOG_DEBUG calls to key functions, optimizing static data caching with std::call_once, and improving error message formatting.

Key changes:

  • Added WSL_LOG_DEBUG tracing to 11 HCS/HNS API wrapper functions for better diagnostics
  • Refactored GetProcessorFeatures() and GetSchemaVersion() to use static caching with std::call_once for thread-safe one-time initialization
  • Improved error messages by standardizing format specifiers to %ls and splitting long error messages into separate log calls

@benhillis
Copy link
Member Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Dec 23, 2025

@benhillis I've opened a new pull request, #13973, to work on those changes. Once the pull request is ready, I'll request review from you.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 4 comments.

@benhillis
Copy link
Member Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Dec 24, 2025

@benhillis I've opened a new pull request, #13977, to work on those changes. Once the pull request is ready, I'll request review from you.

THROW_HR_MSG(static_cast<HRESULT>(response.Error->Error), "%hs", response.Error->ErrorMessage.c_str());
}

g_processorFeatures = std::move(response.Response.ProcessorFeatures);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this doesn't actually move the structure since response is a const reference

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@benhillis benhillis merged commit 6f47fa9 into master Jan 6, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants